<?php
session_start();
//если не админ - редирект на главнаю
if($_SESSION['role'] != 'Admin' and  $_SESSION['role'] != 'Moderator'){
    header("location: /../index.php");
} 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="en" />
<link rel="stylesheet" type="text/css" href="css/admin.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="/../ckeditor/ckeditor.js"></script>
</head>
<body>
<div id="container">

<!--HEADER -->
  <div id="header"> 
    
<!--MAIN MENU -->    
  <div id="main_menu">
      <ul>
        <li><a href="categories.php?list">Категории</a></li>
        <li><a href="posts.php?list">Посты</a></li> 
        <li><a href="comments.php?list">Комментарии</a></li>    
        <li><a href="users.php?list">Пользователи</a></li>
        <li><a href="/../index.php">Выйти</a></li>
      </ul>
    </div>
<!--END MAIN MENU -->
    
  </div>
<!--END HEADER --> 
 
  <div id="left_side">
         
  </div>
  <div id="content">
   
  </div>

</div>

</body>
</html>
